package moonstruckdrops.dto;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class ProfileDto implements Serializable{
	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	Long id;
	@Persistent
	String BlogTitle;
	@Persistent
	String BlogComent;
	@Persistent
	String BlogAuthor;
	@Persistent
	Text  BlogAuthorProfile;
	
	public ProfileDto(){
		BlogTitle="";
		BlogComent="";
		BlogAuthor="";
		BlogAuthorProfile=new Text("");
	}
	
	public ProfileDto(String BlogTitle,String BlogComent,String BlogAuthor,Text BlogAuthorProfile){
		this.BlogTitle=BlogTitle;
		this.BlogComent=BlogComent;
		this.BlogAuthor=BlogAuthor;
		this.BlogAuthorProfile=BlogAuthorProfile;
	}
	
	public ProfileDto(Long id,String BlogTitle,String BlogComent,String BlogAuthor,Text BlogAuthorProfile){
		this.id=id;
		this.BlogTitle=BlogTitle;
		this.BlogComent=BlogComent;
		this.BlogAuthor=BlogAuthor;
		this.BlogAuthorProfile=BlogAuthorProfile;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getBlogTitle() {
		return BlogTitle;
	}
	public void setBlogTitle(String blogTitle) {
		BlogTitle = blogTitle;
	}
	public String getBlogComent() {
		return BlogComent;
	}
	public void setBlogComent(String blogComent) {
		BlogComent = blogComent;
	}
	public String getBlogAuthor() {
		return BlogAuthor;
	}
	public void setBlogAuthor(String blogAuthor) {
		BlogAuthor = blogAuthor;
	}
	public Text getBlogAuthorProfile() {
		return BlogAuthorProfile;
	}
	public void setBlogAuthorProfile(Text blogAuthorProfile) {
		BlogAuthorProfile = blogAuthorProfile;
	}
}
